package structure.concrete;

import structure.interfaces.IOperatorUnary;

/**
 * this class represent the sine operator in the chromosome
 * the class implements INode interface and therefore functions 
 * documentation can be found inside INode.java
 */
public class Sine extends IOperatorUnary {

	@Override
	public double getValue(double x) {
		return Math.sin(child.getValue(x));
	}

	@Override
	public String getDescription() {
		return "sin(" + child.getDescription() + ")";
	}

	
}
